﻿layui.use(['form', 'layer', 'table', 'laytpl'], function () {
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery,
        laytpl = layui.laytpl,
        table = layui.table;

    //用户列表
    var tableIns = table.render({
        elem: '#subjectList',
        url: '/Subject/LoadData/',
        cellMinWidth: 95,
        page: true,
        height: "full-125",
        limits: [10, 15, 20, 25],
        limit: 10,
        id: "subjectListTable",
        cols: [[
            { type: "checkbox", fixed: "left", width: 50 },
            //{ field: "Id", title: 'Id', width: 50, align: "center" },
            { field: 'SubjectName', title: '课题名称', minWidth: 50, align: "center" },
            { field: 'SubjectDesc', title: '课题描述', minWidth: 50, align: "center" },
            { title: '操作', minWidth: 80, templet: '#managerListBar', fixed: "right", align: "center" }
        ]]
    });

});